/*
 * bruch.h
 *
 *  Created on: 15.08.2011
 *      Author: stephan
 */

#ifndef BRUCH_H_
#define BRUCH_H_

typedef struct {
	int zaehler;
	int nenner;
} Ratio;

Ratio multi(Ratio bruch1, Ratio bruch2);
Ratio divi(Ratio bruch1, Ratio bruch2);
Ratio plus(Ratio bruch1, Ratio bruch2);
Ratio minus(Ratio bruch1, Ratio bruch2);
Ratio setBruch();
void print_bruch(Ratio x);
Ratio ratio_fromString(char *x);
#endif /* BRUCH_H_ */
